package me.zhulu.cglib;

import net.sf.cglib.proxy.CallbackFilter;

import java.lang.reflect.Method;

/**
 * Created with IntelliJ IDEA.
 * User: herosea
 * Date: 14-4-17
 * Time: 下午4:33
 * To change this template use File | Settings | File Templates.
 */
public class AuthProxyFilter implements CallbackFilter {
    @Override
    public int accept(Method method) {
        if (!"query".equalsIgnoreCase(method.getName())) {
            return 0;
        }
        return 1;
    }
}
